Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSockets on PushVnodes #28

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

WebSockets on PushVnodes #28

wants to merge 10 commits into from

Conversation

Razaso
Copy link
Collaborator

@Razaso Razaso commented Jan 31, 2025

  1. Acts as both WebSocket Server and WebSocket client.
  2. Connects to ANode as a subscriber and maintain min number of WebSocket connections and subscribes to the BLOCK event.
  3. The UI clients connects to VNodes as subscribers and subscribes to BLOCK along with filtering.
  4. Periodically checks if the node is maintaining the configured min ANode connections and if not it stops the Websocket server and disconnects all the client subscribers.
  5. Every block it receives checks to see if it has received min number of confirmation from the configured min anodes before publishing the BLOCK event to the clients.

@Razaso Razaso requested review from Igx22, akp111 and Aman035 January 31, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant